package com.fsai.cms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fsai.cms.base.BaseEntity;

/**
 * 机构领导对象 base_leader
 * 
 * @author jaffe
 * @date 2021-03-11
 */
public class BaseLeader extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 主键ID */
	private Long leaderId;

	/** 领导名称 */
	private String leaderName;

	/** 领导照片 */
	private String leaderPhoto;

	/** 领导岗位 */
	private String leaderPost;

	/** 所属处室 */
	private Long orgId;

	/** 机构名称 **/
	private String orgTitle;

	/** 启用状态（0启用 1关闭） */
	private String status;

	/** 机构对象 */
	private BaseOrg baseOrg;

	public String getOrgTitle() {
		return orgTitle;
	}

	public void setOrgTitle(String orgTitle) {
		this.orgTitle = orgTitle;
	}

	public BaseOrg getBaseOrg() {
		if (baseOrg == null) {
			baseOrg = new BaseOrg();
		}
		return baseOrg;
	}

	public void setBaseOrg(BaseOrg baseOrg) {
		this.baseOrg = baseOrg;
	}

	public void setLeaderId(Long leaderId) {
		this.leaderId = leaderId;
	}

	public Long getLeaderId() {
		return leaderId;
	}

	public void setLeaderName(String leaderName) {
		this.leaderName = leaderName;
	}

	public String getLeaderName() {
		return leaderName;
	}

	public void setLeaderPhoto(String leaderPhoto) {
		this.leaderPhoto = leaderPhoto;
	}

	public String getLeaderPhoto() {
		return leaderPhoto;
	}

	public void setLeaderPost(String leaderPost) {
		this.leaderPost = leaderPost;
	}

	public String getLeaderPost() {
		return leaderPost;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	public Long getOrgId() {
		return orgId;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus() {
		return status;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("leaderId", getLeaderId())
				.append("leaderName", getLeaderName()).append("leaderPhoto", getLeaderPhoto())
				.append("leaderPost", getLeaderPost()).append("orgId", getOrgId()).append("status", getStatus())
				.append("createBy", getCreateBy()).append("createTime", getCreateTime())
				.append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("remark", getRemark())
				.toString();
	}
}
